<style>
#server-status {
	text-align: center;
}

.results1 {
	float: left;
	width: 95%;
	margin: 30px;
}

td,th {
	text-align: center;
}
</style>
{% include '/templates/cs_header.html' %}
<!-- Container -->
<div id="container1">
  <!-- Content -->
  <div id="content1" class="flex">
    <div>
      <h3>운영자 지급 목록</h3>
      <div>
        <div class="module1" id="changelist">
          <form id="list-form" action="/cs/adminLogs/" method="post">
            <div class="results1">
              <table class="result_list">
                <thead>
                  <tr>
                    <th class="sortable" scope="col" style="width: 40px; text-align: center;">
                      <div class="text">ID</div>
                    </th>
                    <th class="sortable" scope="col" style="width: 50px; text-align: center;">
                      <div class="text">관리자 이름</div>
                    </th>
                    <th class="sortable" scope="col" style="width: 150px; text-align: center;">
                      <div class="text">유저 카톡 ID</div>
                    </th>
                    <th class="sortable" scope="col" style="width: 150px; text-align: center;">
                      <div class="text">Action</div>
                    </th>
                    <th class="sortable" scope="col" style="width: 50px; text-align: center;">
                      <div class="text">수치</div>
                    </th>
                    <th class="sortable" scope="col" style="width: 400px; text-align: center;">
                      <div class="text">메모</div>
                    </th>
                    <th class="sortable" scope="col" style="width: 200px; text-align: center;">
                      <div class="text">일시</div>
                    </th>
                  </tr>
                </thead>
                <tbody>
                  {% for log in logs %}
                  <tr class="row{{ log.index % 2 }}">
                    <td>{{log.id}}</td>
                    <td>{{log.admin}}</td>
                    <td>{{log.userId}}</td>
                    <td>{{log.action}}</td>
                    <td>{{log.data}}</td>
                    <td>{{log.desc}}</td>
                    <td>{{log.datetime}}</td>
                  </tr>
                  {% endfor %}
                </tbody>
              </table>
              <h3>총 : {{total}}</h3>
              <input type='hidden' name='cursor' value='{{cursor}}' />
              <input type='hidden' name='reversed' value='{{reversed}}' />
              <input type='hidden' name='count' value='{{count}}' />
              {% if prev %}
              <input type="submit" value="이전페이지" style="cursor: pointer;" name="_prev" />
              {% else %}
              <input type="submit" value="이전페이지" disabled name="_prev" />
              {% endif %}
              |
              {% if next %}
              <input type="submit" value="다음페이지" style="cursor: pointer;" name="_next" />
              {% else %}
              <input type="submit" value="다음페이지" disabled name="_next" />
              {% endif %}
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  {% include '/templates/cs_footer.html' %}